<template>
    <div class="box">
      <div>粥品香坊（大运村）</div>
      <div>
            <el-rate
            v-model="value"
            disabled
            show-score
            text-color="#ff9900"
            score-template="{value}">
          </el-rate>
      </div>
      <div>
        <span></span>
        <span>优惠信息</span>
        <span></span>
      </div>
      <ul>
        <li>
          <img src="./img/decrease_2@2x.png" alt="">
          <span>Lorem ipsum dolor sit amet.</span>
        </li>
        <li>
          <img src="./img/decrease_2@2x.png" alt="">
          <span>Lorem ipsum dolor sit amet.</span>
        </li>
        <li>
          <img src="./img/decrease_2@2x.png" alt="">
          <span>Lorem ipsum dolor sit amet.</span>
        </li>
        <li>
          <img src="./img/decrease_2@2x.png" alt="">
          <span>Lorem ipsum dolor sit amet.</span>
        </li>
        <li>
          <img src="./img/decrease_2@2x.png" alt="">
          <span>Lorem ipsum dolor sit amet.</span>
        </li>
      </ul>
      <div>
        <span></span>
        <span>商家公告</span>
        <span></span>
      </div>
      <p>Lorem ipsum, dolor sit amet consectetur adipisicing elit. Nesciunt officia, tempora id veniam quod nemo illo asperiores perspiciatis assumenda saepe.</p>
      <div @click="offNotice">
        ×
      </div>
    </div>
</template>

<script>
export default {
  name: "Notice",
  data() {
      return {
        value: 3.7
      }
    },
  components: {},
  methods: {
    offNotice(){
      this.$emit("offNotice")
    }
  }
  
};
</script>
<style lang="less" scoped>
.box{
  position:absolute;
  top:0;
  bottom: 0;
  right:0;
  left:0;
  background-color:rgba(7,17,27,0.8);
  & > :nth-child(1){

    width: 100%;
    font-size:32px;
    font-weight:700;
    color: rgb(255,255,255);
    line-height:32px;
    margin:128px 0 32px;
    text-align: center;
  }
  & > :nth-child(2){

    text-align: center;
  }
  & > :nth-child(3){

    text-align: center;
    
    & > :nth-child(1){
      border:1px solid rgba(255,255,255,0.2);
      display: inline-block;
      width:224px;
      vertical-align:middle;
      margin-right: 24px;
    }
    & > :nth-child(2){
      font-size:28px;
      font-weight:700px;
      line-height:28px;
      color: rgb(255,255,255);
      vertical-align:middle;
    }
    & > :nth-child(3){
      border:1px solid rgba(255,255,255,0.2);
      display: inline-block;
      width:224px;
      vertical-align:middle;
      margin-left: 24px;
    }
  }
  & > :nth-child(4){

    margin: 0 96px ;
    li{
      img{
        width:32px;
        height:32px;
        vertical-align:middle;
        margin-bottom:24px;
      }
      span{
        font-size:24px;
        color: rgb(255,255,255);
        font-weight: 200;
        line-height:24px;
        vertical-align:middle;
      }
    }
  }& > :nth-child(5){

    text-align: center;
    margin: 56px 0 48px;
    & > :nth-child(1){
      border:1px solid rgba(255,255,255,0.2);
      display: inline-block;
      width:224px;
      vertical-align:middle;
      margin-right: 24px;
    }
    & > :nth-child(2){
      font-size:28px;
      font-weight:700px;
      line-height:28px;
      color: rgb(255,255,255);
      vertical-align:middle;
    }
    & > :nth-child(3){
      border:1px solid rgba(255,255,255,0.2);
      display: inline-block;
      width:224px;
      vertical-align:middle;
      margin-left: 24px;
    }
  }
  & > :nth-child(6){
    margin: 0 96px;
    font-size:24px;
    font-weight:200;
    color:rgb(255,255,255);
    line-height:48px;
  }
  & > :nth-child(7){
    position: relative;
    bottom:-400px;
    font-size:64px;
    margin-bottom: 64px;
    color:rgb(255,255,255);
    text-align: center;
  }
}

</style>